import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'node:path';

import Markdown from 'vite-plugin-md';
import cesium from 'vite-plugin-cesium';
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue({ include: [/\.vue$/, /\.md$/] }), Markdown(), cesium()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
      Config: path.resolve(__dirname, 'config'),
    },
  },
  optimizeDeps: {
    include: ['@kangc/v-md-editor/lib/theme/vuepress.js'],
  },
});
